package roboticsfmw.sample.hardware;

import org.apache.log4j.Logger;

import roboticsfmw.core.HardwareProxy;


public class EyesHardwareProxy implements HardwareProxy {

	private Logger log;
	
	public EyesHardwareProxy() {
	}
	
	@Override
	public void init() {
		log = Logger.getLogger(EyesHardwareProxy.class);
	}	
	
	@Override
	public void shutdown() {
		log.info("Eyes Hardware Shutdown!");
	}

	public void openEyes() {
		log.warn("Robot Eyes Open!");
	}
	
	public void closeEyes() {
		log.warn("Robot Eyes Close!");
	}
	
	public void eyesLookAt(int direction) {
		switch (direction) {
		case 0:
			log.warn("Robot Eyes looks to the front!");
		case 1:
			log.warn("Robot Eyes looks to the right!");
		case -1:
			log.warn("Robot Eyes looks to the left!");
		default:
			break;
		}	
	}

	
}
